#include "PhysicsFactory.h"

//Factory
PhysicsBox * PhysicsFactory::CreateBox
							  ( const b2Vec2 & topRight, 
							  const b2Vec2 & topLeft,
								float thickness,
								const PhysicsProperties & inProps )
{
	PhysicsBox * pb;
	pb = new PhysicsBox(topRight, topLeft, thickness, inProps);

	return pb;
}

PhysicsCircle * PhysicsFactory::CreateCircle( 
										float rad,
										const PhysicsProperties & inProps )
{
	PhysicsCircle * pc;
	pc = new PhysicsCircle(rad, inProps);
	return pc;
}

PhysicsChain * PhysicsFactory::CreateChain( const b2Vec2 * verts, 
											int numVerts,
											const PhysicsProperties & inProps )
{
	PhysicsChain * pc;
	pc = new PhysicsChain(verts, numVerts, inProps);
	return pc;
}